package com.xbongbong.saas.model;

import com.xbongbong.paas.toolbox.wrap.IModel;
import com.xbongbong.pro.domain.entity.AiAssistantEntity;
import com.xbongbong.pro.domain.entity.HomePageManageEntity;

import java.util.List;
import java.util.Map;

/**
 * @ClassName HomePageManageModel
 * @Description 首页管理
 * @Author mengna.Deng
 * @Date 2021/11/1 13:51
 * @Version 1.0
 */
public interface HomePageManageModel extends IModel<HomePageManageEntity> {
    /**
     * 保存设置
     * @param entity
     * @return
     */
    Integer save(HomePageManageEntity entity);

    /**
     * 删除实体
     * @param key
     * @param corpid
     * @return
     */
    Integer deleteByKey(Long key, String corpid);

    /**
     * 批量插入
     * @param entityList
     */
    void insertBatch(List<HomePageManageEntity> entityList);
    /**
     * 获取实体
     * @param key
     * @param corpid
     * @return
     */
    HomePageManageEntity getByKey(Long key, String corpid);
    /**
     * 批量更新（enable，updateTime,range）
     * @param entityList
     * @param corpid
     */
    void updateBatch(List<HomePageManageEntity> entityList, String corpid);

    @Override
    Integer getEntitysCount(Map<String, Object> param);
}
